<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-12-03 17:42:17
 * @LastEditors: mxy
 * @LastEditTime: 2022-12-03 19:55:39
-->
<template>
  <div>
    <h2>right组件</h2>
    <p>{{ age }}</p>
    <button @click="age++">点击加一</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      age: 20,
    };
  },
};
</script>

<style scoped>
div {
  min-height: 200px;
  background-color: pink;
  margin-top: 10px;
}
</style>